package com.gateway.demo.service;

import com.gateway.demo.config.FullLogConfiguration;
import com.gateway.demo.config.RtnMsg;
import com.gateway.demo.service.hystrix.GateAuthServiceHystrixImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.Map;

/**
 * @author linzf
 */
@FeignClient(value="AUTHENTICATION-CENTER",fallback = GateAuthServiceHystrixImpl.class,configuration = FullLogConfiguration.class,path = "/auth")
public interface GateAuthService {

    /**
     * 功能描述：实现对路由地址的鉴权
     * @param auth
     * @return
     */
    @PostMapping("/authUrl")
    RtnMsg authUrl(Map<String,String> auth);

}
